package com.fw.service.impl;

import com.fw.entity.Pig;
import com.fw.dao.PigMapper;
import com.fw.service.IPigService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author james
 * @since 2021-06-19
 */
@Service
public class PigServiceImpl extends ServiceImpl<PigMapper, Pig> implements IPigService {
    @Resource
    PigMapper pigMapper;
    public Integer allInPigNum(Integer pigkilluid){
        return pigMapper.allInPigNum(pigkilluid);
    }

    @Override
    public Integer sellableNum(Integer pigkilluid) {
        return pigMapper.sellableNum(pigkilluid);
    }

    @Override
    public Integer NoPassCheckNum(Integer pigkilluid) {
        return pigMapper.NoPassCheckNum(pigkilluid);
    }

    @Override
    public Integer killedNum(Integer pigkilluid) {
        return pigMapper.killedNum(pigkilluid);
    }

    @Override
    public Integer checkingNum(Integer pigkilluid) {
        return pigMapper.checkingNum(pigkilluid);
    }

    @Override
    public List<Pig> listSellablePig(Integer pigkilluid) {
        return pigMapper.listSellablePig(pigkilluid);
    }

}
